//
//  Defines.h
//  SHNet
//
//  Created by FranklinPhill on 15/12/14.
//  Copyright © 2015年 Fire. All rights reserved.
//

#ifndef Defines_h
#define Defines_h

#ifdef DEBUG
#define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#define DLog(...)
#endif

#define APPDELEGATE (AppDelegate *)[[UIApplication sharedApplication] delegate]
#define RGBColor(r, g, b) [UIColor colorWithRed:(r)/255.f green:(g)/255.f blue:(b)/255.f alpha:1.f]
#define StoryBoard(storyId) [UIStoryboard storyboardWithName:storyId bundle:nil]    //StoryBoard
#define Image(imageName) [UIImage imageNamed:imageName]  //UIImage

#define kTitleBarHeight 64.f
#define kViewWidth self.view.frame.size.width
#define kViewHeight self.view.frame.size.height

#define webViewLoadFinishedNotification @"webViewLoadFinishedNotification"

#endif /* Defines_h */
